<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class TongUser extends Model
{

	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'tong_users';

    protected $guarded = [];



    /**
     * @param $id
     * @return mixed
     */
    public static function getPInfo($id){
        $info = self::where('id',$id)->find();
        return $info['nickname'];
    }




}
